package com.achievo.mail;

import org.apache.commons.mail.Email;
import org.apache.commons.mail.EmailException;


/**
 * 
 * Report Server
 * write at Jan 21, 2010
 * @author <a href="mailto:chinaoryx@gmail.com">Hyman.Zhang (Zhang Haipeng)</a>
 * @version 1.0
 * 
 *
 */
public class EmailSender implements Runnable {
	
	
	private Email email = null;
	
	

	public EmailSender(Email email) {
		super();
		this.email = email;
	}
	
	
	public void send() throws EmailException{
		email.send();
	}



	public void run() {
		try {
			this.send();
		} catch (EmailException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
	
	
	

}
